import request from '@/utils/request'

// 查询品类配置列表
export function listProTypeConf(query) {
  return request({
    url: '/conf/ProTypeConf/list',
    method: 'get',
    params: query
  })
}

// 查询品类配置详细
export function getProTypeConf(id) {
  return request({
    url: '/conf/ProTypeConf/' + id,
    method: 'get'
  })
}

// 新增品类配置
export function addProTypeConf(data) {
  return request({
    url: '/conf/ProTypeConf',
    method: 'post',
    data: data
  })
}

// 修改品类配置
export function updateProTypeConf(data) {
  return request({
    url: '/conf/ProTypeConf',
    method: 'put',
    data: data
  })
}

// 删除品类配置
export function delProTypeConf(id) {
  return request({
    url: '/conf/ProTypeConf/' + id,
    method: 'delete'
  })
}
